|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |

Skie Ankora
|
Posted - 2008.12.05 20:25:00 -
[1]
Edited by: Skie Ankora on 05/12/2008 20:27:41 Edited by: Skie Ankora on 05/12/2008 20:26:11 Hi,
I'm a long time user of Emma, looking forward to upgrading to the full license once I have it up and running properly.
I would prefer to be able to install Emma in a folder under my user account and not give it full admin access to my system (call me paranoid, but there you go). However, when the AutoUpdater.exe program runs, I automatically get prompted to escalate it's privileges to administrator (on Vista with UAC enabled).
I know this fixes Emma so it 'just works' for most users. However is there some way I can turn off the automatic prompt?
I am trying to work out what causes it, so I can disable it. It doesn't appear to be the filename. Maybe the file properties, or maybe a manifest embedded in it? Could there be an option (or some way I can modify the file) to turn this off when it is not necessary?
|

Skie Ankora
|
Posted - 2008.12.08 11:26:00 -
[2]
Quote: I'm afraid that the program is really designed to work in a full admin environment (because it writes to both program files folder and hkey local machine in the registry). I've added some code to all the components to ask for full administrator access when they run but if installing to a user level directory, the auto-updater would not require this. Tbh, it's not somthing I considered since I always run on a full admin account but I will be working to make the program compatible with non-admin accounts in the future. It's just going to take some time.
Thanks, I'd much appreciate these changes.
Something to bear in mind is that Vista will virtualise applications for backwards compatibility. This means that hkey local machine registry writes will be virtualised under the user writable parts of the registry, and the same for the program files directory. See here for further information: http://msdn.microsoft.com/en-us/library/aa965884.aspx
If the only two incompatibilities with non-admin mode are writing to program files, and hkey local machine, then I believe the virtualization features in Vista should make it work without any changes to the code.
|

Skie Ankora
The Hippies House of Mercury
|
Posted - 2009.01.07 09:33:00 -
[3]
Any update on vista issues?
I still want to be able to run Emma without being requested for admin access through UAC. I still can't fathom why it doesn't 'just work' (tm) with vista's new virtualization features for HKLM registry access/filesystem access.
Originally by: Ambo Having said that, getting isk is certainly an incentive and I do prioritise things towards those who have paid (or what I want ). I think developing new features for a price could work, but those features would have to be available to everyone and normal bug fixing would have to continue... In short, if you were to chuck be some money and say 'btw, I'd like this feature' it would certainly get me to work on that as I priority. 
OK I'll pay you for the proggie (even though I haven't used it yet due to the Vista issues - but I loved the original Emma) and a bit more on top, maybe that will help focus you on this issue :)
I'm happy to help with fixing this issue in any way I can. I work in security and I've got a good idea how access controls in Vista work, but not about programming. Maybe we can have a convo about it in game.
|

Skie Ankora
The Hippies House of Mercury
|
Posted - 2009.01.07 14:03:00 -
[4]
Understood about priorities vs. effort etc. I don't want you to go to a lot of effort to fix this just on my account.
However that said, rather than my ISK back, I would still like to be able to use EMMA again :)
I think we should be able to come up with a quick work-around that will be minimal effort on your part. I have an idea, I'll convo you in game about it if I catch you online if that's OK.
|

Skie Ankora
The Hippies House of Mercury
|
Posted - 2009.01.20 19:16:00 -
[5]
Hi Ambo,
Thanks for the updates :)
I'm running the new release 1.1.0.3.
The AutoUpdater.exe still prompts for me admin access on Vista. Did you say it was not supposed to any more?
It has the little shield icon next to it which means explorer somehow auto-detected that it requires admin access.
My AutoUpdater.exe version is 1.1.0.0, is that right?
|

Skie Ankora
The Hippies House of Mercury
|
Posted - 2009.01.21 00:20:00 -
[6]
Originally by: Ambo I havn't changed anything in that area since we were testing yesterday so it shouldn't be prompting now if it wasn't then.
If Vista is detecting that it needs admin access automatically then I'm not sure what else I can do. 
No mate the update program is working just like it was before - no problems there. It did exactly the same thing on the test beta version you sent me. Although we were talking about you making further changes to stop Vista detecting it as needing administrator rights. I just wasn't sure whether you'd done that for this update or not.
I am having other problems though. When I do an item report for the last week, none of my items are showing an average buy price (just a dash) - but they were immediately prior to this update.
Is anyone else getting this problem? I've verified it with a corp-mate who also has a copy of Emma. I can't ever get an average buy price to display.
Also, I'm having a problem with the 'cost of units sold' not being correct (this was wrong before the update aswell). E.g. Transactions window shows a single unit bought for 8m and a single unit sold for 15m, but cost of units sold shows 4.5m. I know the cost can depend on previous buy orders etc. but this is an item that I have literally only ever sold and bought exactly one unit of, so I know the value should be 7m (assuming I am understanding it correctly of course!) |

Skie Ankora
The Hippies House of Mercury
|
Posted - 2009.01.21 23:59:00 -
[7]
Originally by: Ambo
Well I removed the flag that tells Vista that it needs admin privilages but I guess Vista can somehow still detect that it's going to be needing it anyway.
Perhaps I can set somthing that will force it NOT to ask. I'll try and find out.
I did some research and I think I found the problem - Vista detects any executable with certain keywords in the name as requiring administrative rights, including the keyword "update" (see here for further details: http://msdn.microsoft.com/en-us/library/aa905330.aspx).
The best way to stop it is to include an application manifest with requestedExecutionLevel set to "asInvoker", as explained here (shows how to do it in Visual Studio): http://msdn.microsoft.com/en-us/library/bb206295.aspx.
Originally by: Ambo
The cost of units sold is still wokred out in the same manner as described in the FAQ here . The only change I've made is that if there are reprocess jobs that produce the item then they are taken into account as well when calculating the cost of units sold.
If you buy one unit at 7m and sell it at 15m and you currently have no units anywhere else then the cost of units sold should be 7m.
I'll try setting up some simple test cases with an alt to make sure it's definatley still working as it should but certainly it seems fine on my main.
I've looked into it some more and you are right - I was misunderstanding how cost of units is calculated.
I'm still finding it gives misleading answers in some situations. For example look at the attached graphic showing a dump of my transactions for an item and the corresponding item report on it http://eve-files.com/dl/184736. The cost of units is shown as 9m because that was the earliest buy price back in December. The sale price was 15.5m so that gives a net margin of 6.5m. However I recently bought the item for 5.25m and sold for 15.5m, for a net margin of 10.25m.
So the net profit values emma is currently giving me are quite misleading at the moment. However, the new algorithm improves on the way Emma used to work in some situations. e.g. in the reporting period you sell an item but don't buy any units, the old Emma would show a profit equal to total sale value rather than deducting the earlier buy price.
I need to think on this some more, it's complicated... All I know now is most of the time I'm not finding the output of the item report very useful for determining my actual net profit. But on the other hand the new way of doing things does make sense in a lot of ways. What are your thoughts on it?
|
|
|
|